<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <meta name="keywords" content=""/>
        <meta name="description" content=""/>
        <meta http-equiv="X-UA-Compatible" content="IE=7"/>
        <link rel="stylesheet" type="text/css" href="css/reset.css" />
        <link rel="stylesheet" type="text/css" href="css/myresume.css" />
    </head>
    <body>
        <div id="interactive-box" class="dialog" style="min-width: 770px; z-index: 99999; left: 247px; top: 552px; width: auto;">
            <div class="top">
                <div class="corner"></div>

            </div>
            <div class="body">
                <div class="client">
                    <form method="post" action="?c=MyResume&a=ProjectAdd">
                        <input type="hidden" value="<?= $uid ?>" name="userid">
                        <input type="hidden" value="<?=$id?>"name="id" />
                        <table width="100%" class="form">
                            <colgroup><col width="100">
                                <col width="12">
                                <col width="*">
                            </colgroup><tbody><tr>
                                    <td class="label">项目名称:</td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <input type="text" value="<?=$dataInfo['name']?>" maxlength="80" name="name" class="text error-input" id="projectname-input">
                                        <span rel="projectname-input" class="error">请填写项目名称</span></td>
                                </tr>
                                <tr>
                                    <td class="label">团队规模:</td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <select name="teamsize" id="teamscale-select">
                                            <option value="">请选择</option>
                                            <?php
                                            foreach ($teamsize as $tskey=>$tsval){
						if($tskey == $dataInfo['teamsize']){
							echo '<option value="'.$tskey.'" selected>'.$tsval.'</option>';
						}else{
                                               		echo '<option value="'.$tskey.'">'.$tsval.'</option>';
						}
                                            }
                                            ?>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">项目简介:</td>
                                    <td class="aster"></td>
                                    <td class="input"><textarea id="project-synopsis" class="floatleft" name="pro_desc"><?=$dataInfo['pro_desc']?></textarea>
                                        <p class="floatleft"><span class="error" id="error-dc97668a-0772-47a6-be5e-4edf179da85d"></span></p>
                                        <div class="clear">请详细描述项目内容（限300字）</div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="label">担任职务:</td>
                                    <td class="aster">*</td>
                                    <td style="position:relative;" class="input">
                                        <div style="position:relative;">
                                            <input type="text" value="<?=$dataInfo['duties']?>" maxlength="60" name="duties" id="position-input" class="text">
                                        </div>
                                    </td>
                                </tr>
                                <!--<tr>
                                    <td class="label">职位类别:</td>
                                    <td class="aster">*</td>
                                    <td id="profession-linkup" class="input">
                                        <select id="profession-specialty-sort" name="department" style="width:100px;" class="select">
                                            <option value="">请选择</option>
                                            <option value="1322">计算机软件类</option>
                                            <option value="1323">电子·硬件类</option>
                                            <option value="1325">通信类</option>
                                            <option value="1326">互联网类</option>
                                            <option value="1327">游戏类</option>
                                            <option value="1328">市场类</option>
                                            <option value="1329">销售类</option>
                                            <option value="1330">商业零售类</option>
                                            <option value="1331">行政·人事类</option>
                                            <option value="1332">客户服务类</option>
                                            <option value="1333">财会类</option>
                                            <option value="1334">金融·银行类</option>
                                            <option value="1335">设计类</option>
                                            <option value="1336">广告类</option>
                                            <option value="1337">法律类</option>
                                            <option value="1338">咨询·顾问类</option>
                                            <option value="1339">教师·培训类</option>
                                            <option value="1340">翻译类</option>
                                            <option value="1341">媒体·影视类</option>
                                            <option value="1342">生物·制药类</option>
                                            <option value="1343">环保类</option>
                                            <option value="1344">化工类</option>
                                            <option value="1345">医疗·护理类</option>
                                            <option value="1346">贸易·物流类</option>
                                            <option value="1348">旅游类</option>
                                            <option value="1349">建设工程类</option>
                                            <option value="1350">房地产类</option>
                                            <option value="1352">质量管理类</option>
                                            <option value="1353">机械仪表类</option>
                                            <option value="1354">动力·能源类</option>
                                            <option value="1357">其他类</option>
                                        </select>
                                        <select style="width:150px" name="post" class="select" id="profession-select">
                                        </select>
                                    </td>
                                </tr>-->
                                <tr>
                                    <td class="label">参与时间:</td>
                                    <td class="aster">*</td>
                                    <td class="input">
                                        <input type="hidden" value="" name="startDate" id="projectstartdate-input">
                                        <select id="projectstartdate-input-year" name="start_year">
                                            <option value=""></option>
					   <?php
						$this_year = date("Y");
						for($s_year=1994; $s_year<= $this_year; $s_year++){
							if($dataInfo['startyear'] == $s_year){
								echo '<option value="'.$s_year.'" selected>'.$s_year.'</option>';
							}else{
								echo '<option value="'.$s_year.'">'.$s_year.'</option>';
							}
						}
					    ?>
                                        </select> 年
                                        <select id="projectstartdate-input-month" name="start_month">
                                            <option value=""></option>
					<?php
						for($s_month=1; $s_month<= 12; $s_month++){
                                                        if($dataInfo['startmonth'] == $s_month){
                                                                echo '<option value="'.$s_month.'" selected>'.$s_month.'</option>';
                                                        }else{
                                                                echo '<option value="'.$s_month.'">'.$s_month.'</option>';
                                                        }
                                                }
					?>
                                        </select> 月
                                        至
                                        <input type="hidden" value="" name="endDate" id="projectenddate-input">
					<?php
						$end_year_class = $end_month_class = $to_now_class = "";
						if($dataInfo['tonow'] == 1){
							$dataInfo['endyear'] = 0;
							$dataInfo['endmonth'] = 0;
							//$end_year_class = "disabled";
							//$end_month_class = "disabled";
							$to_now_class = "checked";
						}
					?>
                                        <select id="projectenddate-input-year" name="end_year" <?=$end_year_class?> >
                                            <option value=""></option>
					<?php
                                                $this_year = date("Y");
                                                for($s_year=1994; $s_year<= $this_year; $s_year++){
                                                        if($dataInfo['endyear'] == $s_year){
                                                                echo '<option value="'.$s_year.'" selected>'.$s_year.'</option>';
                                                        }else{
                                                                echo '<option value="'.$s_year.'">'.$s_year.'</option>';
                                                        }
                                                }
                                            ?>
                                        </select> 年
                                        <select id="projectenddate-input-month" name="end_month" <?=$end_month_class?> >
                                            <option value=""></option>
					<?php
                                                for($s_month=1; $s_month<= 12; $s_month++){
                                                        if($dataInfo['endmonth'] == $s_month){
                                                                echo '<option value="'.$s_month.'" selected>'.$s_month.'</option>';
                                                        }else{
                                                                echo '<option value="'.$s_month.'">'.$s_month.'</option>';
                                                        }
                                                }
                                        ?>
                                        </select> 月
                                        <input type="checkbox" id="tonow" value="1" name="tonow" class="checkbox" <?=$to_now_class?> ><label for="projectenddate-input-present-checkbox" class="checkbox">至今</label>             </td>
                                </tr>
                                <tr>
                                    <td class="label">职责和业绩:</td>
                                    <td></td>
                                    <td class="input">
                                        <textarea id="project-merit" class="floatleft" name="achievement"><?=$dataInfo['person_desc']?></textarea>
                                        <p class="floatleft"><span class="error" id="error-f2d2b80c-5f7b-4f26-9e5a-8eb896d2918a"></span></p>
                                        <div class="clear">请详细描述您在项目中取得的业绩（限300字）</div>
                                    </td>
                                </tr>
                            </tbody></table>
                        <div class="inputdiv_btn">
                            <button class="big-default" type="submit"><span><span>确定</span></span></button>
                            <button type="button" class="normal" onclick="self.parent.tb_remove()"><span><span>取消</span></span></button>
                        </div>
                    </form>
                </div>
                <div class="error">&nbsp;</div>
                
            </div><div class="bottom"><div class="corner"></div></div></div>
        <script language="javascript" src="js/jquery.js"></script>
        <script language="javascript" src="js/validator.js"></script>
        <script language="javascript" src="js/jquery.cascade.js"></script>
        <script language="javascript" src="js/jquery.cascade.ext.js"></script>
        <script language="javascript">
            $(".exam-select").cascade("#languagename-select",{
                ajax: {url: '?c=Ajax&a=SelectRel&modId=2' }
            });
        </script>
        <script>
            Zvalidator.init();
        </script>
    </body>
</html>
